# -*- coding: utf-8 -*-

from os.path import dirname, join
try:
    from setuptools import setup, find_packages
except ImportError:
    import distribute_setup
    distribute_setup.use_setuptools()
    from setuptools import setup, find_packages


version = __import__('cpwsgid').version
doc = __import__('cpwsgid').__doc__
with open(join(dirname(__file__), 'README.txt')) as fp:
    long_desc = fp.read()


setup(
    name='cpwsgid',
    version=version,
    license='MIT',
    url='http://code.google.com/p/python-cpwsgid/',
    download_url='http://code.google.com/p/python-cpwsgid/downloads/list',
    author='Thorsten Weimann',
    author_email='weimann (at) ymail.com',
    description=doc,
    platforms='posix',
    zip_safe=False,
    long_description=long_desc,
    packages=find_packages(),
    include_package_data=True,
    install_requires=['cherrypy>=3.2'],
    entry_points={
        'console_scripts': ['cpwsgid = cpwsgid.cpwsgi_daemon:main']
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Framework :: CherryPy',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Topic :: Internet :: WWW/HTTP :: WSGI :: Server',
        'Topic :: Utilities',
    ],
)
